package com.qtummatrix.controller;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.qtummatrix.entity.BlackList;
import com.qtummatrix.service.BlacklistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.HashMap;
import java.util.Map;

@Controller("deleteBlacklistAudit")
public class deleteBlacklistAuditController extends ActionSupport implements ModelDriven<BlackList>{
	@Autowired
	private BlacklistService blacklistService;
	
	private BlackList blackList =new BlackList();
	
	Map<String,Object> info=new HashMap<String,Object>();
	
	
	public Map<String, Object> getInfo() {
		return info;
	}


	public void setInfo(Map<String, Object> info) {
		this.info = info;
	}
	
	

	public BlackList getBlackList() {
		return blackList;
	}


	public void setBlackList(BlackList blackList) {
		this.blackList = blackList;
	}
	
	public BlackList getModel() {
		return blackList;
	}
	public String deleteBlacklistAudit() {
		int id=blackList.getId();
		blacklistService.deleteBlacklistAudit(id);
		info.put("message","删除成功");
		return SUCCESS;
	}

	
}
